/*
 * @Author: Await
 * @Date: 2025-02-23 11:38:32
 * @LastEditors: Await
 * @LastEditTime: 2025-02-23 20:52:33
 * @Description: 请填写简介
 */
export interface IDebuggerConfig {
    // 调试器基本配置
    debuggerPath: string;
    debuggerPort: number;
    debuggerHost: string;
    timeout: number;

    // 功能开关
    enableSourceMap: boolean;
    enableHotReload: boolean;
    enableConditionalBreakpoints: boolean;
    enableDataBreakpoints: boolean;
    enableExceptionBreakpoints: boolean;

    // 日志配置
    logLevel: 'none' | 'error' | 'warn' | 'info' | 'debug' | 'verbose';
    logFile?: string;

    // 性能配置
    maxVariableLength: number;
    maxStringLength: number;
    maxArrayLength: number;
    evaluationTimeout: number;
}

export const defaultConfig: IDebuggerConfig = {
    debuggerPath: 'netcoredbg',
    debuggerPort: 4711,
    debuggerHost: '127.0.0.1',
    timeout: 5000,

    enableSourceMap: true,
    enableHotReload: false,
    enableConditionalBreakpoints: true,
    enableDataBreakpoints: false,
    enableExceptionBreakpoints: true,

    logLevel: 'error',

    maxVariableLength: 1000,
    maxStringLength: 500,
    maxArrayLength: 100,
    evaluationTimeout: 2500
}; 